<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>

        .con{
            width: 100px;
            height: 100px;
            background-color: gold;
            margin: 100px auto 0;
            /*参1 改变的属性 参2改变 的时间 参3 运动曲线  参4延迟到的时间*/
            /*transition: width 1s ease,height 2s ease ;*/
            transition: all 2s ease;
        }

        .con:hover{
            width: 300px;
            height: 300px;
            background-color: darkblue;
        }
    
    
    </style>
</head>
<body>
    

    <div class="con">


    </div>


</body>
</html>